package com.sinosoft.builder.model;

/**
 * Java类的field元素抽象
 * 
 * @author 潘巍（Peter Pan）
 * @since 2010-5-14 下午05:13:27
 */
public class JavaField extends JavaLanguageElement {

	private Class<?> type;
	private Object value;

	public JavaField(Class<?> type, String name) {
		this(type, name, null);
	}

	public JavaField(Class<?> type, String name, Object value) {
		super(name);
		this.type = type;
		this.value = value;
	}

	public Class<?> getType() {
		return type;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}
}
